feat(tri-api): Direct Anthropic API agent — no claude CLI dependency (Issue #60)#61
Merged
feat(tri-api): Direct Anthropic API agent — no claude CLI dependency (Issue #60)#61
Conversation
…(Issue #60) Self-contained agentic loop in src/tri-api/ (624 LOC, 3 files): - tool_executor.zig: 4 tools (read_file, write_file, bash, grep) via std - tool_protocol.zig: Anthropic Messages API JSON build/parse - main.zig: POST to api.anthropic.com/v1/messages, tool_use loop Zero cross-directory imports. Talks to Claude API directly from Zig. Closes #60 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
gHashTag
added a commit
that referenced
this pull request
Mar 18, 2026
…warm v1.0 [Golden Chain #61] - QuarkType enum(u6) → enum(u7): 128 capacity, 72/128 used - +8 QuarkType variants (64-71): swarm_orchestrate, swarm_consensus, swarm_replication, swarm_failover, swarm_discovery_v2, swarm_self_heal, swarm_telemetry, swarm_anchor - +4 ChainMessageTypes: SwarmOrchestrate, SwarmFailover, SwarmTelemetry, SwarmReplication - +4 types: SwarmOrchState, SwarmFailoverConfig, SwarmTelemetryState, SwarmReplicationRecord - +5 methods: orchestrateSwarm, swarmFailover, sendTelemetry, replicateState, swarmVerify - Phase L verification: swarm orchestration + replication + telemetry - Export v9 (54-byte header, backwards compatible v1-v9) - Quarks 96→104 (13+13+13+14+13+12+13+13) - WASM stub + Canvas fully synced - 3054/3060 tests pass (2 pre-existing storage failures) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
gHashTag
added a commit
that referenced
this pull request
Mar 18, 2026
…(Issue #60) (#61) Self-contained agentic loop in src/tri-api/ (624 LOC, 3 files): - tool_executor.zig: 4 tools (read_file, write_file, bash, grep) via std - tool_protocol.zig: Anthropic Messages API JSON build/parse - main.zig: POST to api.anthropic.com/v1/messages, tool_use loop Zero cross-directory imports. Talks to Claude API directly from Zig. Closes #60 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Antigravity Agent <antigravity@vibee.org> Co-authored-by: Claude <noreply@anthropic.com>
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/tri-api/directory (624 LOC, 3 files, zero cross-directory imports)read_file,write_file,bash,grep) viastd.fs+std.process.Childapi.anthropic.com/v1/messages, execute tools, feed results backtri-apiexecutable targetFirst Trinity binary that talks to Claude API directly from Zig, no TypeScript/CLI wrapper.
Usage
Architecture
Test plan
zig buildcompiles all targets including tri-apizig fmt src/tri-api/— no formatting issuestri-api "Read build.zig"with real API keyCloses #60
🤖 Generated with Claude Code